package test.example

import org.junit.Test
import org.junit.Assert.*

import test.TestCase

/**
 * Example local unit test, which will execute on the development machine (host).
 *
 * See [testing documentation](http://d.android.com/tools/testing).
 */
class ExampleUnitTest {
    @Test
    fun asyncCase() {
        val testCase = TestCase()

        val thread = Thread(Runnable {
            Thread.sleep(2000)
            testCase.setResult(true, "async result is success")
        })
        thread.start()

        testCase.finish(5)
    }
}
